﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebApp
{
    interface IDAO
    {
        List<country> getCountry();
        country getCountry(int id);

        trip getTrip(int id);
        List<trip> getTrips(int min_price,int max_price, int country, DateTime date_begin, DateTime date_end);

        int addUser(string login, string password, string email);// pasowaloby zeby od razu dodawal do person i dodawalo do user odpowiednie person_id
        user checkLogin(string username, string password);
        
        List<reservation> getReservations(int person);
        void addReservation(int trip_id, int person_id, int company_id, int person_count);
    }
}
